package com.shanghaiyimu.yimiyangche.activity;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.shanghaiyimu.yimiyangche.R;

public class ShopContentActivity extends AppCompatActivity implements View.OnClickListener{

    private RelativeLayout layout;
    private TextView textView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_shop_content);
        initView();
    }

    private void initView() {
        textView = (TextView) findViewById(R.id.go_give_money);
        textView.setOnClickListener(this);
        layout = (RelativeLayout) findViewById(R.id.layout);
        layout.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.go_give_money:
                startActivity(new Intent(this,PayMoneyactivity.class));
                break;
            case R.id.layout:
                startActivity(new Intent(this,DaoHangActivity.class));
                break;
        }
    }
}
